<?php
/**
 * CreateTime: 2022/12/9 15:40
 */

namespace App\Models\Config;

use App\Consts\TableConsts\TableConsts;
use App\Models\BaseModel;

class SystemConfigModel extends BaseModel
{
    protected $table = TableConsts::CY_CUSTOM_SYSTEM_CONFIG;

    public function getValue(){
        return $this->where('custom_config_id',1)->first();
    }

    public function setValue($value){
        return $this->where('custom_config_id',1)->update($value);
    }


}